{"action":"opened","issue":{"url":"https://api.github.com/repos/Marus/cortex-debug/issues/47","repository_url":"https://api.github.com/repos/Marus/cortex-debug","labels_url":"https://api.github.com/repos/Marus/cortex-debug/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Marus/cortex-debug/issues/47/comments","events_url":"https://api.github.com/repos/Marus/cortex-debug/issues/47/events","html_url":"https://github.com/Marus/cortex-debug/issues/47","id":317242183,"number":47,"title":"ITM debugging doesn't work under Windows","user":{"login":"bergus","id":1146478,"avatar_url":"https://avatars0.githubusercontent.com/u/1146478?v=4","gravatar_id":"","url":"https://api.github.com/users/bergus","html_url":"https://github.com/bergus","followers_url":"https://api.github.com/users/bergus/followers","following_url":"https://api.github.com/users/bergus/following{/other_user}","gists_url":"https://api.github.com/users/bergus/gists{/gist_id}","starred_url":"https://api.github.com/users/bergus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergus/subscriptions","organizations_url":"https://api.github.com/users/bergus/orgs","repos_url":"https://api.github.com/users/bergus/repos","events_url":"https://api.github.com/users/bergus/events{/privacy}","received_events_url":"https://api.github.com/users/bergus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T14:04:46Z","updated_at":"2018-04-24T14:04:46Z","closed_at":null,"author_association":"NONE","body":"When I try to set `swoConfig.enabled` to `true` in my launch.json configuration entry, I get an exception:\r\n\r\n> Failed to launch OpenOCD GDB Server: Timeout.\r\n\r\nIn the adapter output, it starts almost normally, but then it logs\r\n\r\n> Error: Can't open trace destination file\r\n\r\nwhich appears to come from [here](http://repo.or.cz/openocd.git/blob/HEAD:/src/target/armv7m_trace.c#l187), bitching about the [`tpio config internal` command](http://openocd.org/doc/html/Architecture-and-Core-Commands.html#ARMv7-and-ARMv8-Architecture) being called with an invalid path - [here in the extenion](https://github.com/Marus/cortex-debug/blob/86bd82dac4c7013e7ad6278ba6fa980d153c1813/src/openocd.ts#L136-L139), I gather. I also can see that `ChildProcess.spawnSync('mkfifo', [this.swoPath])` is only called on non-windows platforms, so this is probably the culprit - the file really doesn't exist.\r\n\r\n**What do you think can I do about this? Do you want to support this at all?**\r\n\r\n----\r\n\r\n[This SO thread](https://stackoverflow.com/q/11750041/1048572) suggests using sockets instead. I have no idea what openocd expects to work with.\r\nI also have `mkfifo` tools installed from Mingw64 and Cygwin64, could they work if I just remove the OS check?"}}
{"actor":{"display_login":"bergus"}}