Breakpoint will not currently be hit. No executable code associated with this line

后端 未结 9 1698
感情败类
感情败类 2021-01-07 23:50

I have a class in a .h file:

class Blah
{
public:
    Blah(){}
    virtual ~Blah(){}

    void WriteMessage( bool MessageReceived )
    {
        if(MessageR         


        
9条回答
  •  广开言路
    2021-01-08 00:18

    I would suggest you firstly Delete the output files : Physically delete all generated DLLs, PDBs and EXEs. Then compile (rebuild) again to generate the files. Sometimes Visual Studio can "get lost" and "forget" to overwrite the output files when you build your solution.

    This can happen for a few other reasons:

    • The code the debugger is using is different from the code that the application is running
    • The pdb file that the debugger is using is different from the code that the application is running
    • The code the application is running has been optimized and debug information has been stripped out.
    • The code in which you have breakpoints on hasn't been loaded into the process yet

提交回复
热议问题