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.
Summary: | Debugger for ME projects does not work in OTA mode | ||
---|---|---|---|
Product: | javame | Reporter: | alexander.burdukov |
Component: | Project | Assignee: | Roman Svitanic <rsvitanic> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | mmirilovic |
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
alexander.burdukov
2014-03-14 21:07:24 UTC
Also, I noted that project properties are not always saved. E.g. I tried to debug project in Regular Execution mode, than switched to OTA Execution mode and started debug project again. If repeat these two steps several times switching between execution modes stops working. E.g. I switch to OTA mode, but project is started in Regular Execution mode, however, project properties shows that OTA mode is selected. After restart of NetBeans project properties shows Regular Execution mode again when it was set to OTA mode before closing NetBeans. Due to the second problem debugger can stop working in Regular Execution mode since internally OTA mode is used. (In reply to alexander.burdukov from comment #0) > The problem is that debug arguments (-Xdebug -Xrunjdwp...) are appended to > the first (-Xjam:install) command, when they must be appended to the last > (-Xjam:run) command only. If debug arguments are moved to Xjam:run command, then midlet doesn't start at all. In emulator it hangs with status "Starting". Command is as following (for concrete run, with concrete address): emulator -Xdevice:"EmbeddedDevice1" -Xjam:run=1 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=50261 Yes, you are right. Since OTA mode does not have a console, the emulator.exe exists immediately when the command is completed. "-Xjam:run" command just run an application, but does not wait its completion. It means, that debugger port is closed immediatelly when emulator.exe exits. Therefore, debugger is not supported in OTA mode. So, to fix this issue, "Debug" command must always start emulator in Regular Execution mode (however, the mode itself should be kept in project properties). fixed in jet-main: http://hg.netbeans.org/jet-main/rev/323a1c92a239 (In reply to alexander.burdukov from comment #4) > So, to fix this issue, "Debug" command must always start emulator in Regular > Execution mode (however, the mode itself should be kept in project > properties). Debug now starts always in Regular Execution, project properties are not changed. Integrated into 'main-silver', will be available in build *201403190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/323a1c92a239 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #242913: Debugger for ME projects does not work in OTA mode - fixed Integrated into 'main-silver', will be available in build *201403200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/492857b71882 User: Roman Svitanic <rsvitanic@netbeans.org> Log: Adding forgotten bundle message (#242913) Verified on latest nightly build. Let's keep it in Resolved state until integration into 80patch1 transplanted to release80 branch: http://hg.netbeans.org/releases/rev/b7669e384ac5 http://hg.netbeans.org/releases/rev/7d64bc9daf26 Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/b7669e384ac5 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #242913: Debugger for ME projects does not work in OTA mode - fixed Verified on NetBeans 8.0 with all updates available on Apr 30, 2014 applied. Works for me. Closing. |