Carles Costa
Carles Costa

Reputation: 1

Edit code while debuging in visual studio

I've searched for the forum and I have not found how can I edit my code in Visual Studio 2010 when I am debuging.

I mean, in Tools, Edit and Continue is enabled. Also IntelliTrace is disabled, but when I try to change a simple ',' in a SQL command (for example), I can not it and I have to restart de program.

The project is in Framework 4.0.

Upvotes: 0

Views: 59

Answers (5)

Mousa Alfhaily
Mousa Alfhaily

Reputation: 1290

Try This :

While you are debugging the code, Pause it and press F8 on your keyboard to go step by step And here's some PICs :

Image : 1

Image : 2

Image : 3

I Hope My Answer Was Useful To You :)

Please... Replay If Unclear

Upvotes: 0

user1493382
user1493382

Reputation:

Go to Build-->Configuration Manager and check that Platform is set to x86 (32-bit). If you use x64 (64-bit) compile, you can't debug/change code on the fly during run-time.

Upvotes: 0

Ɖiamond ǤeezeƦ
Ɖiamond ǤeezeƦ

Reputation: 3331

Check that:

  1. The configuration is Debug and not Release;
  2. Enable Optimizations in Advance Compile Options (in Project Properties) is unchecked;
  3. Unmanaged code debugging is false for all referenced projects in the solution;
  4. Embed Interop Types is false and Copy Local is true.

If it is an ASP.NET project:

  1. Right-click the project and select Properties
  2. Select the Web tab
  3. Check the Enable Edit and Continue checkbox

Screenshot

Upvotes: 0

Carles Costa
Carles Costa

Reputation: 1

If there are any DLL Interop embed, does not work.

I have to set to False Embed Interop Types and set to true a copy a local

Thanks,

Upvotes: 0

Thanos Markou
Thanos Markou

Reputation: 2624

Try this : Tools -> Options -> Intellitrace-> General -> Open Intellitrace settings and disable the Collect Call Information setting.

Another solution is to put the Project's Platform target = x86 and not x64.

Upvotes: 1

Related Questions