I have a VB.net script and I want to debug it. For do this I attach the debug to a Windows application.I have setted some brakpoints in the script, but when the script recive them, the IDE makes a new file in C:\Users\LocalUser\AppData\Local\Temp.vsdbgsrc and the file code is in C#.What I have to set for haveing the debug file in VB.net? I have searched a lot but no luck.
There is no option for the debugger to use VB.Net. Both C# and VB.Net are compiled to the same IL (intermediate language). This IL is the real code given the to the JIT for producing the code actually run by the CPU, and IL and the JIT neither know nor care about the original language. But for some time now the JIT and most of the CLR themselves have been written in C#, and that's what the debugger sees and knows to generate.
But even with C#, you will not get back the same code your wrote initially, because of a concept called "Lowering"