Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to reach breakpoint in Visual Studio

I am facing a odd behavior of Breakpoints in Visual Studio 2010 Express. Below is the code with breakpoints.

enter image description here

I am able to break at the first breakpoint (Line 159), but stepping after line 160, the cursor vanishes, i.e after this image of code pressing F10/F11 the application is displayed.

The problem is,

Why isn't line 162 executing (Without this statement, asserts fail elsewhere) or breaking at it?

Note : The line 166 Refresh(); is being executed, because the application displayed is updated.

EDIT : On suggestions in comments, I stepped through disassembly, and I found this line (from wxWidgets library) is causing the debug to fail 00D5AF7C call wxCharBuffer::~wxCharBuffer (0D207AAh)

like image 893
Vinayak Garg Avatar asked Nov 04 '22 07:11

Vinayak Garg


1 Answers

Have you tried stepping through disassembly? With combined assembly-source view you can tell what exactly is going on.

To do that once you hit a breakpoint go to Debug->Windows->Disassembly. Or just click RMB and then "Go to disassembly".

like image 126
gwiazdorrr Avatar answered Nov 07 '22 22:11

gwiazdorrr