简体   繁体   中英

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.

在此输入图像描述

I am able to break at the first breakpoint (Line 159), but stepping after line 160, the cursor vanishes, ie 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)

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".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM