Welcome to the Treehouse Community
Looking to learn something new?
how to activate a thread ?
i'm trying to run the debugger in my weather app but when the debug process is running i got an "x" inside the red circle which indicates the breakpoint and when positioning on i read the following message:
Line 94 in MainActivity.getCurrentDetails() (com.example.mario.stormy) No executable code found at line 94 in class com.example.mario.stormy.MainActivity Suspend: thread
I assume if i got this thread active the debugger will show me the result i need as ben did in the video.
Awaiting your remarks.
Thanks in advance,
Seth Kroger56,403 Points
As I mentioned before in a previous question you asked, a breakpoint needs to be on a line of actual code, not a comment or blank line (this includes purely structural lines like curly-braces).
thank you for answering Seth.
It make it sense to me what you tell me, however the breakpoint at line 94 is where is the JSONObject currently and ben did the same but in the video the breakpoint is set up at line 86 (min. 02:38 Setting CurrentWeather from JSON) and if it ran successfully for ben honestly i don't know where the error is in my case. All i'm trying to get as a result of this, it's to visualize all key/pairs and values gotten from the web with their corresponding variables onto the JSONObject currently.
Sorry i asked too much but in my experience i always fix a problem so i don't find it in my way over in the future again.