-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor breakpoints in Isolates are not working #9209
Comments
This comment was originally written by nistv...@gmail.com splice = slice of course :) |
This comment was originally written by jim.trai...@jptrainor.com Big problem! Still happening in 0.4.7_r21548. Debugging unit test's is now much harder - cannot set break points in the test! |
Removed Priority-Medium label. |
This comment was originally written by nistv...@gmail.com Just tried and this still doesn't work with: Dart Editor version 0.6.5_r25017 Working with code containing Isolates is painful without this being fixed. |
There will be a couple of changes needed in multiple components:
Currently the standalone protocol allows for pausing and inspecting different isolates, but not setting any breakpoints. I am making this the bug tracking the overall feature request of setting breakpoints in isolates. cc @devoncarew. |
Added this to the Later milestone. |
Issue #14225 has been merged into this issue. |
I moved "- The debugging protocol needs to allow newly created isolates to stop at the entry point." into its own separate issue #14227. Although as long as the current support for debugging isolates is not surfaced through the UI implementing this additional feature is moot. cc @mhausner. |
This comment was originally written by nistvan.8...@gmail.com This still doesn't work. With the new Isolate API this can be reproduced like this: * Command line apps: import 'dart:isolate'; void myIsolateEntryPoint(SendPort send) { main() { * Web apps:
import 'dart:isolate'; main() {
import "dart:isolate"; void main(args, SendPort send) { |
This comment was originally written by nistva...@gmail.com Can you give us an estimate when you will put this on to the development roadmap? |
Set owner to @clayberg. |
Set owner to @devoncarew. |
Removed this from the 1.6 milestone. |
Added NotPlanned label. |
We really need to do this.... reopening. Added this to the 1.6 milestone. |
Why is it closed!? Its been 11 years since, and still does not seem to work. |
This issue was originally filed by nistvan....@gmail.com
What steps will reproduce the problem?
I've created a very basic web project with the following Dart code:
import 'dart:html';
import 'dart:isolate';
void main() {
IsolateSink isolateSink = streamSpawnFunction(myIsolateEntryPoint);
MessageBox isolateMessageBox = new MessageBox();
isolateSink.add(isolateMessageBox.sink);
isolateMessageBox.stream.listen((String data) {
print(data);
});
}
void myIsolateEntryPoint() {
stream.listen((IsolateSink messageBoxSink) {
messageBoxSink.add("Test");
});
}
This will print "Test" into Dartium's console so it's working as it should.
If i place break points in Dart Editor on the body of myIsolateEntryPoint() the VM will not pause during execution. The same thing works in the main() function.
What is the expected output? What do you see instead?
The VM should stop inside the isolate code at the breakpoint but it doesn't do this at the moment.
What version of the product are you using? On what operating system?
Dart Editor version 0.4.1_r19425
Dart SDK version 0.4.1.0_r19425
Windows 8 x64 Pro
Please provide any additional information below.
For me it seems that the debugger client running in the Dart Editor is only seeing the main isolate. If i do something in the isolate code which yields in a runtime exception (like executing splice on a null String object) i won't see any message in the editor console.
The text was updated successfully, but these errors were encountered: