Recompiling after Debugging

Once you have run a debug session, you must detach the debugger before recompiling. If you don't do this you will see errors when the Veriog-A code is modified then re-run. This is because the debug symbol file used by the debugger will still be loaded in Visual Studio. Use Debug > Detach All to detach the Sim.exe process form the debugger.

Before you reattach Visual Studio, re-run the simulation so that the Verilog-A module is recompiled. It doesn't matter if the simulation fails in some way as long as the Verilog-A compilation completes successfully. Once the compilation is complete you can reattach Sim.exe to Visual Studio and resume your debugging session.