patti_nyl

Hi, when I am trying to debug, now and then Visual Studio opens a Assembler file to debug, I don't want that, eaven when it is my own code it opens a dissambly file.

What is wrong

thanks in advance, Patrik



Re: Visual C++ General Debuggin

Shakje

If you are trying to debug a release version it will open the executable in assembly because it doesn't have the debug symbols built into it, if you try to debug a running program that hasn't been started in debug mode, unless the pcb files are in the same folder as the running program and the program was compiled as debug version then you won't be able to step into the code.




Re: Visual C++ General Debuggin

patti_nyl

Hi,

I am running in debug mode. I don't found any .pcb files.

I start my application in Managed code, and makes a call into my unmanaged code where I have placed a breakpoint, but It doesn't break, and if I try to use step into from my managed code into my native code I only see a Dissasembly file.

What should I change Project properties

I am using Visual Studio 2005.

thanks, Patrik





Re: Visual C++ General Debuggin

Shakje

Sorry I meant pdb files, however in project properties under Debugging set the Debugger Type to Mixed. See if that helps.

Cheers,


Iain






Re: Visual C++ General Debuggin

crescens2k

Yup thats right, you must make sure that you create the PCB files when you compile. It is also a good idea to make sure that the optimisations are switched off too.

There are two you should make sure is switched on.

Project->Properties->Configuration Properties->C++->General and make sure that Debug Information Format is set to Program Database. Edit and continue doesn't work in mixed mode.

Along with this you should make sure that it also has a name for the output file.

Project->Properties->Configuration Properties->C++->Output Files and make sure that Program Database File Name is set.

The second option to make sure you have switched on is the one in the linker.

Project->Properties->Configuration Properties->Linker->Debugging and make sure that the Generate Debug Info is set to yes and Generate Program Database File has a file name.






Re: Visual C++ General Debuggin

patti_nyl

Hi, I haven't yet get it to work...

Now I have encountered a new problem aswell. When I am stepping in my managed code, I get error from Visual Studio telling me "Visual Studio is buisy, waiting for an interrupt" and the debugger throws me into a disassembly file.

What is wrong

best regards, Patrik