[Fortran] debugger only shows the first 1000 elements of arrays

Aperta
#10,406 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
fortran, vscode
Ambito
devtools

Direzione di ricerca

Riproduci il report utilizzando i file launch.json, tasks.json e Makefile forniti, con gfortran e GDB su Windows. Acquisisci i log del debugger e traccia il modo in cui cppdbg visualizza gli array dinamici Fortran; il lavoro è completato quando l’array completo è visibile senza inserire manualmente espressioni di slice.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

debugger
Environment
  • OS and version: Windows 10 Version 10.0.19045
  • VS Code: 1.74.3
  • C/C++ extension: 1.13.9
  • GDB / LLDB version: mingw-w64 12.1
Bug Summary and Steps to Reproduce

Hello,
I am trying to debug a Fortran program using cppdbg but vscode only shows 1000 elements. I am able to see the other elements by manually writing expressions in the watch window for each section but the size of the arrays are dynamic, so this is not a viable solution.
It also seems like that this was an old problem that was fixed in a previous version (1.13.6) but I do not know why it happens in my case.

Debugger Configurations
launch.json:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Fdebugger Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/myapp",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "preLaunchTask": "build",
            "miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
            "setupCommands": [
                {
                    "text": "-enable-pretty-printing",
                    "description": "Enable GDB pretty printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        },
    ]
}
tasks.json:
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "make -f Makefile",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "reveal": "silent",
                "panel": "shared"
            },
            "problemMatcher": []
        }
    ]
}
Makefile:
########################################################################
####################### Makefile Template ##############################
########################################################################

# Compiler settings - Can be customized.
CC = gfortran
CPP = gfortran -cpp
CXXFLAGS = -g -O0 -Wall -Wextra -fopenmp  
LDFLAGS = 

# Makefile settings - Can be customized.
APPNAME = myapp
EXT = .f90
SRCDIR = src
OBJDIR = obj

############## Do not change anything from here downwards! #############
Debugger Logs
NA
Other Extensions

I am using Modern Fortran and gfortran compiler, if that is relevant.

Additional Information

No response

Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-cpptools

Tutte le issue di microsoft/vscode-cpptools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.