{"action":"created","issue":{"url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/349","labels_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/349/comments","events_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/349/events","html_url":"https://github.com/TiVo/intellij-haxe/issues/349","id":106189728,"number":349,"title":"Documentation for Debugger","user":{"login":"indolering","id":44454,"avatar_url":"https://avatars.githubusercontent.com/u/44454?v=3","gravatar_id":"","url":"https://api.github.com/users/indolering","html_url":"https://github.com/indolering","followers_url":"https://api.github.com/users/indolering/followers","following_url":"https://api.github.com/users/indolering/following{/other_user}","gists_url":"https://api.github.com/users/indolering/gists{/gist_id}","starred_url":"https://api.github.com/users/indolering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indolering/subscriptions","organizations_url":"https://api.github.com/users/indolering/orgs","repos_url":"https://api.github.com/users/indolering/repos","events_url":"https://api.github.com/users/indolering/events{/privacy}","received_events_url":"https://api.github.com/users/indolering/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TiVo/intellij-haxe/labels/Unprioritized","name":"Unprioritized","color":"fff8ab"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-09-12T23:05:27Z","updated_at":"2015-11-22T00:54:35Z","closed_at":null,"body":"It would be nice if there was some documentation in the wiki explaining how to setup debugging. Srikanth Ganapavarapu said that there is some shell script that TiVo devs use to setup debugging and that they would release...."},"comment":{"url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/comments/158696798","html_url":"https://github.com/TiVo/intellij-haxe/issues/349#issuecomment-158696798","issue_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/349","id":158696798,"user":{"login":"EBatTiVo","id":7231977,"avatar_url":"https://avatars.githubusercontent.com/u/7231977?v=3","gravatar_id":"","url":"https://api.github.com/users/EBatTiVo","html_url":"https://github.com/EBatTiVo","followers_url":"https://api.github.com/users/EBatTiVo/followers","following_url":"https://api.github.com/users/EBatTiVo/following{/other_user}","gists_url":"https://api.github.com/users/EBatTiVo/gists{/gist_id}","starred_url":"https://api.github.com/users/EBatTiVo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBatTiVo/subscriptions","organizations_url":"https://api.github.com/users/EBatTiVo/orgs","repos_url":"https://api.github.com/users/EBatTiVo/repos","events_url":"https://api.github.com/users/EBatTiVo/events{/privacy}","received_events_url":"https://api.github.com/users/EBatTiVo/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T00:54:35Z","updated_at":"2015-11-22T00:54:35Z","body":"So, the command line bugger is the one started by the line \r\n>        debugger.Local(true);\" \r\n \r\nIf you want remote debugging, you'll have to do more work in your app: You need to start the debugger using:\r\n>        debugger.HaxeRemote(true, host, port);\r\n\r\nGenerally speaking, the build/debug configuration (Run->Edit Configurations) is set up to use port 6972, so you can probably cheat and use:\r\n>        debugger.HaxeRemote(true, \"localhost\", 6972);\r\n\r\nHowever, the line has to match your debug settings.  Fortunately, they are passed to your program on the command line.  Notice the \"-start_debugger -debugger_host=localhost:6972\" passed to haxelib: \r\n\r\n>         C:/HaxeToolkit/haxe/haxelib.exe run lime run C:/temp/issue349/openfl_cpp_debug/openfl_cpp_debug/project.xml windows -verbose -Ddebug -debug -args \r\n\r\nYour program should now:\r\n1) Look for the '-start_debugger' parameter before doing anything.  It won't be there if the program is being started via the \"Run\" command from IDEA.\r\n2) Parse the '-debugger_host=' parameter.  If it doesn't exist, then the user (you) probably want to start the command line debugger.  If it does exist, then a remote controller (e.g. IDEA) will be trying to connect on that port.\r\n\r\nAnd, finally, yes, this information needs to be added to the README.md file.  If somebody wants to take the time to make a generic version of the above algorithm, it would be a great addition to the docs."}}