0

I am using custom language say FileName.xyz which on separate tool precompilation/preprocessing temporarily generates C++ files FileName.cpp, which in turn is built using VS build to an executable FileName.exe(and PDB for temporary C++ files symbols).

using in FileName.cpp #line 1 FileName.xyz .

I am able to Debug this Filename.xyz using generated exe and PDBs.

but Edit And Continue is not working during live debugging, as getting error enter image description here

VS is able to detect changes, but unable to trigger FileName.xyz compilation. That's why output window is showing error message .idb and .pdb files are not in synch.

To resolve this :

  1. I've added Custom Build Command to FileName.xyz to perform Tool and generating FileName.cpp, so that VS Build system can automatically take care of further steps(from compiling CPP to patching live exe etc.). But this custom build step never gets triggered during Edit and Continue( while during Regular Build they do).
  2. After xyz file modification from Command prompt, manually I've tried executing tool and compile cpp, but EnC still not picking and giving same error.

I've observed enc_temp_folder\Guid\FileName.xyz is created at Output path.

Is there any way, During Edit and Continue, when file modification is detected, I can customize and trigger some actions, so that VS Build can take care of further steps?

Peeyush
  • 31
  • 6

0 Answers0