Status: New
Owner: ----
Labels: Type-Defect Priority-Unassigned
New issue 23446 by
j...@boasit.dk: Evaluating assignment expressions for
local variables while debugging a web application yields an exception.
https://code.google.com/p/dart/issues/detail?id=23446
What steps will reproduce the problem?
1) Open Webstorm and create a 'Uber Simple Web Application' project
2) Edit web/main.dart such that main() is as follows
void main() {
int i = 42;
querySelector('#output').text = 'Your Dart app is running.';
}
I.e. we introduce a local variable to a function
3) Set a break point after the local variable declaration and run in debug
mode
4) When the breakpoint is reached, open evaluate expression in the IDE
(Menu/Run/Evaluate Expresssion)
5) Enter an assignment expression, e.g. 'i = 1337' and click Evaluate
What is the expected output? What do you see instead?
Expected:
The result of the evaluation is the value assigned to i
Actual:
The result is an exception:
Unhandled exception:
cannot assign to final variable 'i='.
NoSuchMethodError: cannot assign to final variable 'i='
#0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:176)
#1 Eval.<anonymous closure> (evaluate:source:2:1)
#2 main (
http://localhost:63342/untitled/web/main.dart:9:3)
What version of the product are you using?
Webstorm 10.0.2
Dart SDK: 1.11.0-dev.1.0_r45728 (ia32)
On what operating system?
Windows 7 SP1(64bit)
What browser (if applicable)?
Dartium build 45728.0 (ia32)
Please provide any additional information below.
This incident does not occur when running a similar program as a
commandline application
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings