Currently, when launching a debugging session from VSCode on Mac (M1, Ventura),
The simulator will appear behind VSCode. This is not ideal since I have to click the simulator icon to bring it in front after every code change. That's because the simulator is started on every run of the debugger and the Simulator does not remember the window position from a previous run.
The debugger output hints that this could be fixed in the code for the simulator:
Debugger output:
2023-11-12 20:26:41.652563+0100 Playdate Simulator[16159:8915077] [Window] Warning: Window NSWindow 0x1367173b0 ordered front from a non-active application and may order beneath the active application's windows.
2023-11-12 20:26:41.653117+0100 Playdate Simulator[16159:8915077] [Window] Warning: Window PCWindow 0x100b3f7e0 ordered front from a non-active application and may order beneath the active application's windows.
Googling this message leads to Window NSWindow 0x137632e40 ordere⦠| Apple Developer Forums
VSCode launch task:
{
"type": "cppdbg",
"request": "launch",
"name": "Build Sim. & Debug PDX",
"program": "${env:PLAYDATE_SDK_PATH}/bin/Playdate Simulator",
"preLaunchTask": "Build Simulator PDX",
"args": [
"${workspaceFolder}/playdate.pdx"
],
"cwd": "${workspaceFolder}",
"osx": {
"MIMode": "lldb",
"program": "${env:PLAYDATE_SDK_PATH}/bin/Playdate Simulator.app"
},
"linux": {
"MIMode": "gdb",
"program": "${env:PLAYDATE_SDK_PATH}/bin/PlaydateSimulator"
},
"windows": {
"MIMode": "gdb",
"program": "${env:PLAYDATE_SDK_PATH}/bin/PlaydateSimulator.exe"
}
},