code: def internal_get_exception_details_json(dbg, request, thread_id, max_frames, set_additional_thread_info=None, iter_visible_frames_info=None):
      ''' Fetch exception details
      '''
      try:
          response = build_exception_info_response(dbg, thread_id, request.seq, set_additional_thread_info, iter_visible_frames_info, max_frames)
      except:
          exc = get_exception_traceback_str()
          response = pydevd_base_schema.build_response(request, kwargs={
              'success': False,
              'message': exc,
              'body':{}
          })
      dbg.writer.add_command(NetCommand(CMD_RETURN, 0, response, is_json=True)f internal_get_exception_details_json(dbg, request, thread_id, max_frames, set_additional_thread_info=None, iter_visible_frames_info=None):
      ''' Fetch exception details
      '''
      try:
          response = build_exception_info_response(dbg, thread_id, request.seq, set_additional_thread_info, iter_visible_frames_info, max_frames)
      except:
          exc = get_exception_traceback_str()
          response = pydevd_base_schema.build_response(request, kwargs={
              'success': False,
              'message': exc,
              'body':{}
          })
      dbg.writer.add_command(NetCommand(CMD_RETURN, 0, response, is_json=True))
docs: Fetch exception details