Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #77 from DonJayamanne/optionalArgsInStackRequest
Browse files Browse the repository at this point in the history
Ensure stackFrame and levels in stack request are optional
  • Loading branch information
karthiknadig authored Feb 15, 2018
2 parents ebd891f + 74ce2e9 commit c6c8491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ptvsd/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ def on_threads(self, request, args):
def on_stackTrace(self, request, args):
# TODO: docstring
tid = int(args['threadId'])
startFrame = int(args['startFrame'])
levels = int(args['levels'])
startFrame = int(args.get('startFrame', 0))
levels = int(args.get('levels', 0))

tid = self.thread_map.to_pydevd(tid)
with self.stack_traces_lock:
Expand Down

0 comments on commit c6c8491

Please sign in to comment.