This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233773 - Ability to reconnect disconnected NetBeans debug session
Summary: Ability to reconnect disconnected NetBeans debug session
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-01 11:42 UTC by Petr Jiricka
Modified: 2015-06-17 12:29 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-08-01 11:42:54 UTC
1. Create a HTML5 project
2. Run it in Chrome with NetBeans integration
3. Close the yellow debugging infobar - this disconnects NetBeans debug session

=> In order to to reconnect the session, currently the user has to rerun the page; see also bug 233496. It would be useful if this was possible also from the NetBeans Connector Chrome plugin (especially since the Inspect in NetBeans menu is not present if the session is disconnected, and it may not be obvious to the user why that's the case, and how to bring it back). So I suggest to add menu item "Reconnect NetBeans Session" (or similar) to the NetBeans Connector menu. Note that this action will not be able to connect if CDT is open - in that case it should instruct the user to close CDT. See also comment 2 in issue 233496#c2.
Comment 1 David Konecny 2013-08-01 20:44:41 UTC
This makes sense. I'm not sure how easy/hard to implement it will be though. Browser will have to talk back to IDE and IDE will have to trigger page reloading with initialization of debugging session and everything else. Perhaps it could be easy to implement everything directly in extbrowser.chrome module - use last "projectContext" and "url" to reopen page?

I assume that if page was opened in plain "Chrome" browser then ability to reconnect the session should not be available, right?

Let me know Honza if you'd prefer me to fix extbrowser.chrome side of this issue. I'm happy to help.
Comment 2 Jan Stola 2015-06-17 12:29:26 UTC
Implemented: the page action (i.e. the NetBeans cube next to the URL bar) is shown by now for pages whose debugging has been cancelled or for pages started in plain (without NetBeans Connector) mode. The popup displayed when this cube is clicked contains 'Debug in NetBeans' action that does exactly what has been requested in this issue, i.e., switches this tab into the debug mode.