{"action":"created","issue":{"url":"https://api.github.com/repos/sdbg/sdbg/issues/103","labels_url":"https://api.github.com/repos/sdbg/sdbg/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/sdbg/sdbg/issues/103/comments","events_url":"https://api.github.com/repos/sdbg/sdbg/issues/103/events","html_url":"https://github.com/sdbg/sdbg/issues/103","id":54559052,"number":103,"title":"Debugging client code in an OSGi + GWT application using SDBG","user":{"login":"Alicia-L","id":10558652,"avatar_url":"https://avatars.githubusercontent.com/u/10558652?v=3","gravatar_id":"","url":"https://api.github.com/users/Alicia-L","html_url":"https://github.com/Alicia-L","followers_url":"https://api.github.com/users/Alicia-L/followers","following_url":"https://api.github.com/users/Alicia-L/following{/other_user}","gists_url":"https://api.github.com/users/Alicia-L/gists{/gist_id}","starred_url":"https://api.github.com/users/Alicia-L/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alicia-L/subscriptions","organizations_url":"https://api.github.com/users/Alicia-L/orgs","repos_url":"https://api.github.com/users/Alicia-L/repos","events_url":"https://api.github.com/users/Alicia-L/events{/privacy}","received_events_url":"https://api.github.com/users/Alicia-L/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-16T10:09:52Z","updated_at":"2015-01-16T13:12:49Z","closed_at":null,"body":"Hello. In my company we're developing a web application that uses Equinox OSGi and GWT. I was looking into ways to debug the client-side code and ran into SDBG. I followed the video tutorial in http://sdbg.github.io/ (small example with GWT but no OSGi) and it worked.\r\nHowever, it doesn't seem to work with our application (OSGi + GWT): the application runs and works normally, breakpoints on the server side work (as expected), but **breakpoints on the client side do not work**.\r\n\r\nI'm completely new to all this so I would really appreciate some help.\r\n\r\n# Setup\r\n## Versions\r\n**Eclipse:** 4.3.2 (Kepler)\r\n**Google Web Toolkit SDK:** 2.6.0\r\n**SDBG:** 1.0.2.201501121038\r\n\r\n## Debug configurations\r\n![debug configurations](https://cloud.githubusercontent.com/assets/10558652/5773393/820bd67e-9d62-11e4-8b32-8d05dea99f1f.png)\r\n\r\n## OSGi Framework\r\nHere's the one for the OSGi Framework (\"Viewer Framework\"):\r\n![osgi framework - arguments](https://cloud.githubusercontent.com/assets/10558652/5773406/a04b6ba4-9d62-11e4-85b0-043fdc2e1d48.png)\r\n\r\n![osgi framework - common](https://cloud.githubusercontent.com/assets/10558652/5773413/b4808d02-9d62-11e4-83c1-99095c9426ac.png)\r\n\r\n## GWT Web Application\r\nThe one for GWT Web Application (\"Viewer (SuperDev)\"):\r\n![gwt - main](https://cloud.githubusercontent.com/assets/10558652/5773425/d36ff734-9d62-11e4-8a60-afc7d54acdc0.png)\r\n\r\n![gwt - server](https://cloud.githubusercontent.com/assets/10558652/5773435/ef9821d4-9d62-11e4-9da2-257551d6a37e.png)\r\n\r\n![gwt - gwt](https://cloud.githubusercontent.com/assets/10558652/5773437/f742810e-9d62-11e4-9231-c65cef846cab.png)\r\n\r\n![gwt - app engine](https://cloud.githubusercontent.com/assets/10558652/5773441/009e0fc0-9d63-11e4-9498-2d8da7dd29dc.png)\r\n\r\n![gwt - arguments](https://cloud.githubusercontent.com/assets/10558652/5773445/0420de0c-9d63-11e4-8107-1607b7a9e145.png)\r\n\r\n![gwt - jre](https://cloud.githubusercontent.com/assets/10558652/5773449/0be44138-9d63-11e4-806a-472ddb81479f.png)\r\n\r\n![gwt - common](https://cloud.githubusercontent.com/assets/10558652/5773460/19b65d78-9d63-11e4-8ff2-7624876d11b9.png)\r\n\r\n## Chrome\r\nAnd the one for Chrome (\"Viewer (SuperDev) - Chrome\"):\r\n\r\n![chrome - main](https://cloud.githubusercontent.com/assets/10558652/5773707/be59ebae-9d65-11e4-9215-573d19969d84.png)\r\n\r\n![chrome - common](https://cloud.githubusercontent.com/assets/10558652/5773708/bff603f8-9d65-11e4-8c81-21b09767885e.png)\r\n\r\n## GWT 2.6.0 -> linker \"xsiframe\"\r\nSince I'm using GWT 2.6.0, I added the following line to my module definition, `viewer/web/Viewer.gwt.xml`:\r\n\r\n```xml\r\n<add-linker name=\"xsiframe\"/>\r\n```\r\n\r\n# Debugging\r\n\r\n1. Debug > Viewer Framework (OSGi):\r\n![debug - osgi](https://cloud.githubusercontent.com/assets/10558652/5773562/3daec64c-9d64-11e4-9080-28b22aaa4524.png)\r\n\r\n2. Debug > Viewer (SuperDev) (GWT Web Application):\r\n![debug - gwt](https://cloud.githubusercontent.com/assets/10558652/5773626/c105bf78-9d64-11e4-988f-e0d4b3224066.png)\r\n\r\nI get a warning that the port 8888 is already in use (by the OSGi application):\r\n![port in use](https://cloud.githubusercontent.com/assets/10558652/5773628/c74b776a-9d64-11e4-87d3-73d96d1115fa.png)\r\nI choose \"Yes\" (launch anyway).\r\n\r\nGWT Console output:\r\n```\r\nRunning GPE launcher for GWT-2.6.x version.\r\nRuning CodeServer with parameters: [-noprecompile, -port, 9876, -bindAddress, 127.0.0.1, viewer.web.Viewer]\r\nworkDir: C:\\Users\\Alicia-L\\AppData\\Local\\Temp\\gwt-codeserver-1840218060715462844.tmp\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\nModule setup completed in 1191 ms\r\n\r\nThe code server is ready.\r\nNext, visit: http://127.0.0.1:9876/\r\nCreating nocache file: D:\\stash\\viewer.web\\war\\viewer\\viewer.nocache.js\r\nTo compile the module 'viewer' , visit:\r\n http://127.0.0.1:9876/recompile/viewer?_callback=cback&user.agent=safari,gecko1_8,ie8,ie9,ie10\r\n```\r\n\r\n3. Debug > Viewer (SuperDev) - Chrome\r\n\r\n![debug - chrome](https://cloud.githubusercontent.com/assets/10558652/5773745/3362bd7c-9d66-11e4-986f-a4979cbc3b22.png)\r\n\r\nChrome opens:\r\n\r\n![compiling viewer](https://cloud.githubusercontent.com/assets/10558652/5773747/38122830-9d66-11e4-976a-fa95b221ca17.png)\r\n\r\nGWT Console output:\r\n```\r\nCompiling module viewer.web.Viewer\r\n...\r\n   Compiling 1 permutation\r\n      Compiling permutation 0...\r\n      Source Maps Enabled\r\n   Compile of permutations succeeded\r\nLinking into C:\\Users\\Alicia-L\\AppData\\Local\\Temp\\gwt-codeserver-1840218060715462844.tmp\\viewer.web.Viewer\\compile-2\\war\\viewer; Writing extras to C:\\Users\\Alicia-L\\AppData\\Local\\Temp\\gwt-codeserver-1840218060715462844.tmp\\viewer.web.Viewer\\compile-2\\extras\\viewer\r\n   Link succeeded\r\n   Compilation succeeded -- 31.283s\r\nCompile completed in 31650 ms\r\n[WARN] sent source map for module: viewer\r\n```\r\n\r\nChrome Console output:\r\n```\r\n09:56:53,896 |-INFO Initializer.publish - Initialized log formatters.\r\n09:56:54,114 |-FINE PlaceController.publish - goTo: activity.client.DefaultPlace@23\r\n09:56:54,126 |-INFO PlaceManager.publish - Starting activity Intent:{action=action.GOTO, data=#repo}.\r\n09:56:54,136 |-FINE PlaceController.publish - goTo: viewer.web.client.RepositoryPlace@22\r\n09:56:54,153 |-INFO PlaceManager.publish - Starting activity Intent:{action=undefined, component=ComponentName:{class=viewer.web.client.RepoActivity}}.\r\n09:56:54,175 |-INFO SystemRuntime.publish - New application activity.client.app.Application@30 made.\r\n09:56:54,895 |-INFO ActivitiesManager.publish - Service CREATED: Binder:{Intent:{action=undefined, component=ComponentName:{class=session.client.SessionService}}}.\r\n09:56:54,912 |-INFO ActivitiesManager.publish - Service STARTED: Binder:{Intent:{action=undefined, component=ComponentName:{class=session.client.SessionService}}}.\r\n09:56:54,960 |-INFO SystemRuntime.publish - Started activity viewer.web.client.RepoActivity@32.\r\n09:56:54,996 |-FINE SystemRuntime.publish - Performing resume of viewer.web.client.RepoActivity@32 finished=false\r\n09:56:55,003 |-FINE SystemRuntime.publish - Resume activity.client.app.SystemRuntime$ActivityRecord@36e startedActivity: false, hideForNow=false, finished=false\r\n09:56:55,015 |-FINE SystemRuntime.publish - Resuming viewer.web.client.RepoActivity@32 with isForward=false\r\n09:56:55,020 |-INFO ActivitiesManager.publish - Activity RESUMED: Binder:{Intent:{action=undefined, component=ComponentName:{class=viewer.web.client.RepoActivity}}}.\r\n09:56:55,232 |-INFO NotificationManager.publish - Logged in Anonymously\r\n09:56:55,237 |-INFO ActivitiesManager.publish - Service CREATED: Binder:{Intent:{action=undefined, component=ComponentName:{class=channel.client.ChannelService}}}.\r\n09:56:55,247 |-INFO ChannelService.publish - Connecting web socket to ws://127.0.0.1:8888/view/channel?5B30511F635596DB\r\n09:56:55,290 |-INFO ActivitiesManager.publish - Service STARTED: Binder:{Intent:{action=undefined, component=ComponentName:{class=channel.client.ChannelService}}}.\r\n09:56:56,008 |-INFO ConnectionManager.publish - Started channel keep-alive with 5000 ms delay.\r\n```\r\n\r\nChrome is now showing the application, which works fine.\r\nBreakpoints in the server-side code work.\r\nBreakpoints in the client-side code **do not work**.\r\n\r\nAny ideas?\r\nThanks so much!"},"comment":{"url":"https://api.github.com/repos/sdbg/sdbg/issues/comments/70251440","html_url":"https://github.com/sdbg/sdbg/issues/103#issuecomment-70251440","issue_url":"https://api.github.com/repos/sdbg/sdbg/issues/103","id":70251440,"user":{"login":"Alicia-L","id":10558652,"avatar_url":"https://avatars.githubusercontent.com/u/10558652?v=3","gravatar_id":"","url":"https://api.github.com/users/Alicia-L","html_url":"https://github.com/Alicia-L","followers_url":"https://api.github.com/users/Alicia-L/followers","following_url":"https://api.github.com/users/Alicia-L/following{/other_user}","gists_url":"https://api.github.com/users/Alicia-L/gists{/gist_id}","starred_url":"https://api.github.com/users/Alicia-L/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alicia-L/subscriptions","organizations_url":"https://api.github.com/users/Alicia-L/orgs","repos_url":"https://api.github.com/users/Alicia-L/repos","events_url":"https://api.github.com/users/Alicia-L/events{/privacy}","received_events_url":"https://api.github.com/users/Alicia-L/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T13:12:49Z","updated_at":"2015-01-16T13:12:49Z","body":"I'm running 1.0.2.201501121038.\r\nI will do what you describe and get back to you.\r\n\r\nThanks so much for your support (and really fast reaction time!), I really appreciate it! :)\r\n"}}