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 223868 - "Attach to debugger automatically whenever it appears on a port."
Summary: "Attach to debugger automatically whenever it appears on a port."
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-15 08:34 UTC by pekarna
Modified: 2012-12-15 08:34 UTC (History)
0 users

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 pekarna 2012-12-15 08:34:42 UTC
More often than not, the JVM to attach the debugger to is started outside IDE's scope. E.g. various cmdline tools.

The process of starting the app is sometimes quite long - downloading deps, building, creating database, ...).
When this is done, JVM is started, and waits for the debugger to attach (when suspend=y). After debugger is attached, the app continues for another longer period until it get's to the point user is interested in.

It would be much convenient if the IDE watched pre-configured port, and attached automatically any time the debugger would appear on that port. In the UI, this would be represented:

  a) by a toggleable button "Wait for debugger", 

  b) or better, re-using the current "Attach to debugger" dialog, only adding a checkbox - "Watch the port permanently, attach whenever debugger appears".
     (The state of waiting for the debugger could be represented by the button being somehow altered.)

Thanks for considering.