{"action":"created","issue":{"url":"https://api.github.com/repos/svaarala/duktape/issues/245","labels_url":"https://api.github.com/repos/svaarala/duktape/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/svaarala/duktape/issues/245/comments","events_url":"https://api.github.com/repos/svaarala/duktape/issues/245/events","html_url":"https://github.com/svaarala/duktape/issues/245","id":98878702,"number":245,"title":"Automatically step over code with no source","user":{"login":"fatcerberus","id":4097841,"avatar_url":"https://avatars.githubusercontent.com/u/4097841?v=3","gravatar_id":"","url":"https://api.github.com/users/fatcerberus","html_url":"https://github.com/fatcerberus","followers_url":"https://api.github.com/users/fatcerberus/followers","following_url":"https://api.github.com/users/fatcerberus/following{/other_user}","gists_url":"https://api.github.com/users/fatcerberus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatcerberus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatcerberus/subscriptions","organizations_url":"https://api.github.com/users/fatcerberus/orgs","repos_url":"https://api.github.com/users/fatcerberus/repos","events_url":"https://api.github.com/users/fatcerberus/events{/privacy}","received_events_url":"https://api.github.com/users/fatcerberus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/svaarala/duktape/labels/debugger","name":"debugger","color":"bfdadc"},{"url":"https://api.github.com/repos/svaarala/duktape/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-04T03:07:39Z","updated_at":"2016-01-08T19:21:55Z","closed_at":null,"body":"This would be like the \"Just My Code\" feature in Visual Studio, when performing a Step Into operation, have the debugger automatically step over functions without local source available.  This would probably require a change to the protocol where Duktape sends a REQ to the client (do you have source for this?) and if it gets a \"no\" reply back, do a Step Over instead.\r\n\r\nThe reason for this is that, currently, I have an issue where certain files (game maps notably) have code embedded in them and so the client is unable to locate the code for them by filename, leading to file not found exceptions.  So if I could get Duktape to treat these like external code instead of trying to step inside, that would be a great workaround.\r\n\r\nThe other alternative, of course, would be to have Duktape send the original source over the wire... But that would probably require invasive changes. :wink:"},"comment":{"url":"https://api.github.com/repos/svaarala/duktape/issues/comments/170098502","html_url":"https://github.com/svaarala/duktape/issues/245#issuecomment-170098502","issue_url":"https://api.github.com/repos/svaarala/duktape/issues/245","id":170098502,"user":{"login":"fatcerberus","id":4097841,"avatar_url":"https://avatars.githubusercontent.com/u/4097841?v=3","gravatar_id":"","url":"https://api.github.com/users/fatcerberus","html_url":"https://github.com/fatcerberus","followers_url":"https://api.github.com/users/fatcerberus/followers","following_url":"https://api.github.com/users/fatcerberus/following{/other_user}","gists_url":"https://api.github.com/users/fatcerberus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatcerberus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatcerberus/subscriptions","organizations_url":"https://api.github.com/users/fatcerberus/orgs","repos_url":"https://api.github.com/users/fatcerberus/repos","events_url":"https://api.github.com/users/fatcerberus/events{/privacy}","received_events_url":"https://api.github.com/users/fatcerberus/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T19:21:55Z","updated_at":"2016-01-08T19:21:55Z","body":"@svaarala\r\nI'm considering implementing the source tracking on my own, it would be quite useful for the new command-line debugger for minisphere I'm working on--such a tool would have a harder time locating sources than the IDE, having no context with which to locate the original project files.\r\n\r\nIn theory it would probably be enough to store the source code string as an internal property of the Function object, and then implement a GetSourceCode debugger command to return that string to the client.  Or am I completely off-base and it would actually be more complicated than that?"}}