Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fischer committed Mar 2, 2018
1 parent fe243c4 commit 5200b2b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions DebugAdapter/VSDebugSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,14 @@ public class VSDebugSession : ICDPListener, IDebuggeeListener {
string jsonString = encoding.GetString(json);
var j = JsonConvert.DeserializeObject<Response>(jsonString);
if (j.command == "threads" && j.type == "response") {
// TODO
ThreadResponse jThread = JsonConvert.DeserializeObject<ThreadResponse>(jsonString);
for(int ti = 0; ti < jThread.body.threads.Count; ti++) {
debuggeeThreads.Add(jThread.body.threads[ti].id, debugee);
Utilities.LogMessageToFile("Associated thread: " + jThread.body.threads[ti].id + " -> " + debugee);
}


}
} catch(Exception e) {
Utilities.LogMessageToFile("Exception in VSDebuggeeMessage: " + e);
//Utilities.LogMessageToFile("Exception in VSDebuggeeMessage: " + e);
}
toVSCode.SendJSONEncodedMessage(json);
}
Expand Down

0 comments on commit 5200b2b

Please sign in to comment.