Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change DateTime in the Microsoft Visual Studio debugger

What the.... How do I change the value of a DateTime in the debugger? I can change it, but I get an error when leaving the edit field; it cannot parse it.

Edit: VS 2008, C#

like image 931
Rabbit Avatar asked Nov 25 '09 09:11

Rabbit


People also ask

How do I change Debug config in Visual Studio?

In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).


1 Answers

Without looking at what you have, I'm not really sure what edit field you're referring to. However, you could try using the immediate window and DateTime.Parse or new DateTime() instead.

like image 94
lc. Avatar answered Oct 08 '22 02:10

lc.