Skip to content

Commit

Permalink
fix: [debugger] issues of debugging failed
Browse files Browse the repository at this point in the history
1.can`t re-debug after initailized failed or launch failed
2.connect times out while trying to connect before the debugpy port is ready, adding a wait of 500 milliseconds

Log: as title
  • Loading branch information
LiHua000 authored and deepin-mozart committed Nov 11, 2024
1 parent 06cedc0 commit fe4b34c
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 78 deletions.
89 changes: 50 additions & 39 deletions assets/translations/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1708,185 +1708,195 @@ storage: %2
<context>
<name>DAPDebugger</name>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="361"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="674"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="718"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="368"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="681"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="725"/>
<source>
The debugee has Terminated.
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="692"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="699"/>
<source>The debugee has Exited.
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="907"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="914"/>
<source>Input Condition Expression</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="909"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="916"/>
<source>Condition</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="910"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="917"/>
<source>When the breakpoint is reached, it will be hit only when the expression is true</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="282"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="911"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1143"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="289"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="918"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1150"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="280"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="287"/>
<source>can`t attaching to debugee when debuging other application</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="296"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="303"/>
<source>The gdb is required, please install it in console with &quot;sudo apt install gdb&quot;, and then restart the tool, reselect the CMake Debugger in Options Dialog...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="313"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="320"/>
<source>Request cxx dap port failed, please retry.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="912"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1144"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="919"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1151"/>
<source>Ok</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1075"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1082"/>
<source>&lt;Unknown&gt;</source>
<comment>name</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1077"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1084"/>
<source>&lt;Unknown&gt;</source>
<comment>meaning</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1078"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1085"/>
<source>&lt;p&gt;The inferior stopped because it received a signal from the operating system.&lt;p&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;Signal name : &lt;/td&gt;&lt;td&gt;%1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Signal meaning : &lt;/td&gt;&lt;td&gt;%2&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1084"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1091"/>
<source>Signal Received</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1140"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1147"/>
<source>New Evaluator Expression</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1141"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1148"/>
<source>Enter an expression to evaluate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1183"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1190"/>
<source>Threads:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1187"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1194"/>
<source>Stack List</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1260"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1267"/>
<source>Add New Expression Evaluator</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1261"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1268"/>
<source>Remove This Evaluator</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1277"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1284"/>
<source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1277"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1284"/>
<source>Value</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1277"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1284"/>
<source>Type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1218"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1225"/>
<source>Breakpoint List</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1360"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1367"/>
<source>Please build first.
Build : Ctrl + B</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1372"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1379"/>
<source>Is preparing dependence, please waiting for a moment</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1401"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1408"/>
<source>Is getting the dap port, please waiting for a moment</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1413"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1420"/>
<source>Requesting debug port...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1475"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1482"/>
<source>
The dap port is not ready, please retry.
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1479"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1486"/>
<source>Debugging starts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1480"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1487"/>
<source>Launch dap session with port %1 ...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1585"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1505"/>
<source>Debugging service initialization failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1563"/>
<source>Debugger startup failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1596"/>
<source>Start debugging coredump file: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1588"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1599"/>
<source>The coredump target file is error: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1594"/>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="1605"/>
<source>The coredump file is error: </source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -4472,6 +4482,7 @@ not exists support files: %0</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/plugins/debugger/dap/dapdebugger.cpp" line="64"/>
<location filename="../../src/services/window/windowelement.h" line="19"/>
<source>Debug</source>
<translation type="unfinished"></translation>
Expand Down
Loading

0 comments on commit fe4b34c

Please sign in to comment.