microsoft / microsoft/vscode-cpptools

Evaluate doesn't work as expect during core dump debugging

Offen
#500 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug debugger
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

Configuration:

Ubuntu 14 x64 + Cpptools 20160720.1

VSCode : 1.3

Repro Steps:

  1. Copy the source code from
    main.zip

  2. Compile the source: g++ -g exception.cpp main.cpp -o myapp

  3. Enable the core dump: ulimit -c unlimited

  4. Launch the application to generate the core dump:

    ./myapp "-CallRaisedUnhandledException"

  5. Configure the launch.json for "program" and "coreDumpPath"

  6. F5

  7. Try to evaluate:

    a) result = result +1

    b) EvalFunc(100,100)

Actual:

In both cases, it just returns "not available"

Expected:

a) For result = result +1, I assume the evaluated result should be "11" ?

b) For EvalFunc(100,100) - I have a dar automation test which should verify the error message for function evaluation during core dump debugging, just want to double confirm the message "not availabe" is correct ? I assume it should be similar like "Function evaluation is not supported during core dump debugging? "

Investigation:

You can refer to attached MIEngine log

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die Core-Dump-Sitzung mit dem angehängten Quellcode main.zip, Ubuntu und einer launch.json mit program und coreDumpPath zu reproduzieren. Prüfe das angehängte MIEngine-Protokoll, während du die Zuweisung und den Funktionsaufruf auswertest; abgeschlossen ist die Aufgabe, wenn das Verhalten und die erwartete Fehlermeldung festgestellt wurden oder das gemeldete Auswertungsproblem behoben und verifiziert wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp, vscode
Bereich
devtools, operating-systems
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.