Bug 32461 - Immediate window 'application is running'
Summary: Immediate window 'application is running'
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger (show other bugs)
Version: Trunk
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: David Karlaš
URL:
Depends on:
Blocks:
 
Reported: 2015-07-27 05:06 UTC by Marius Ungureanu
Modified: 2015-08-06 05:08 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Marius Ungureanu 2015-07-27 05:06:40 UTC
I manually paused an app by clicking the pause button in the debugger toolbar (this is windows).

Then, I tried inputting:
> new DateTime (DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day)

Got the following result:
> The expression can't be evaluated while the application is running.

I'd have expected the expression to be evaluated.
Comment 1 David Karlaš 2015-07-29 02:04:26 UTC
Problem here is that none of threads has stack frame which could be used for performing evaluation... And wrong message here: https://github.com/mono/monodevelop/blob/fbbcf655c40d0e3157771dc137887b1b70d793bf/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ImmediatePad.cs#L64

I will try to come up with some better solution then just better message.

Note You need to log in before you can comment on or make changes to this bug.