Fix debugger terminating immediately on iOS device debugging#180
Fix debugger terminating immediately on iOS device debugging#180
Conversation
- Add debug parameter to runOniOSDevice function - Modify devicectl launch arguments to exclude --console when debug=true - Update all runOniOSDevice calls to pass debug flag from options - Fix issue where --console flag caused process to exit immediately preventing debugger attachment Co-authored-by: hyzyla <7952949+hyzyla@users.noreply.github.com>
Find in the internet proof for that? @copilot |
- Add comprehensive unit tests for console flag handling logic - Add documentation explaining the root cause and solution - Verify all tests pass and TypeScript compilation works Co-authored-by: hyzyla <7952949+hyzyla@users.noreply.github.com>
|
Nice, are there plans for this to go in soon? |
I would like to move forward with this issue, but I'm not sure if Copilot hallucinated that solution or not |
Based on my analysis it looks like a legit solution. The |
Fixes issue #114 where the debugger would terminate immediately after app launch when debugging iOS applications on physical devices, despite successful app installation and launch.
Problem
When using the "debugging-launch" task to debug iOS apps on physical devices, users experienced:
The same workflow worked perfectly on iOS Simulator, indicating a device-specific issue.
Root Cause
The issue was caused by the
--consoleflag in thedevicectl device process launchcommand. When this flag is used:Solution
Modified the device launch logic to conditionally exclude the
--consoleflag when launching in debug mode:Changes Made
debug?: booleantorunOniOSDevice()function signature--consolewhendebug=trueprovider.tsandcommands.tsto pass the debug flagBehavior After Fix
debugging-launchtask): Launches without--console, keeping process alive for debugger attachmentlaunchtask): Uses--consoleas before for console output capture--consolewasn't supportedTesting
Added unit tests covering:
debug=truedebug=falseAll tests pass, TypeScript compilation successful, no linting issues.
Impact
Closes #114
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.