I'm trying to do a debug step-by-step of my C++ addons that is used within a simple Electron App. The problem is that the break points are never triggered, even if I can see that Visual Studio loaded correctly the .pdb file. What did I do wrong?
I'm using Visual Studio 2019, with Electron 5.0.4. The addon works just fine, and I can put a break point in the Init function :
api_value Init(napi_env env, napi_value exports)
and the debugger breaks at startup.
However when I'm trying to debug a but other members functions are never breaking
napi_value MyObject::PlusOne(napi_env env, napi_callback_info info)
registered with :
status = napi_wrap(env, jsthis, reinterpret_cast<void*>(obj), MyObject::Destructor, nullptr, &obj->wrapper_)
I tried to launch my addon project with electron.exe as run time, I tried to attach my addon project debugger to the main tread of electron, it still doesn't work.
I'd like the break points to stop in every methods, and understand why it doesn't work at the moment.