31 questions from the last 30 days
2
votes
2
answers
183
views
How to debug external program run in main function in C?
I want to add a breakpoint in the line system("/path/to/world") in VS Code for debugging the /path/to/world program with gdb.
Here is the source code of /path/to/hello.c:
int main(int argc, ...
1
vote
2
answers
75
views
showDialog function in flutter not doing anything
I'm making a simple 'To Do List' app In Flutter, When I press the 'floatingActionButton' it's supposed to to show a pop-up where the user can input a new task, But nothing is displayed when the button ...
3
votes
1
answer
128
views
How to manually load a native visualiser during debugging in Visual Studio 2022?
I'm working with COM objects, which means I need to debug SAFEARRAY objects.
It looks as follows in the watch-window:
receivedData 0x007cc980 safearray of UI1, [rank]=1 _variant_t
safearray ...
0
votes
0
answers
121
views
AttributeError: 'NoneType' object has no attribute 'columns' BPTK-Py
Depreciation_DM = model.constant("Depreciation_DM")
Depreciation_DM.equation = 0.0708
DMPIncRate = model.constant("DMPIncRate")
DMPIncRate.equation = 0.0284
DMPInc = model.flow(&...
0
votes
0
answers
135
views
backtrace_symbols can see the full stack but gdb backtrace can't
I have two separate c++ CMake projects, a library and an application. Both are build using in Debug mode with
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -O0 -fno-inline -fno-omit-...
-4
votes
1
answer
63
views
I tried everything and I just wanna toggle my elements [closed]
I'm doing a mini project for a coding bootcamp and I'm trying to toggle elements.
I have a form on my page that I want to make invisible when you submit it, so that the rest of the page shows. It isn'...
2
votes
1
answer
85
views
Question about running GDB with stripped binary and debug symbol file separately
I wrote a simple example program as below and tried to debug using gdb.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
int function1(void)
{
...
-3
votes
0
answers
68
views
How can I combine my C++ source in debug mode with libraries in non-debug mode?
I am developing a relatively large application using Qt, SystemC, and QCustomPlot libraries. When debugging, it takes a long time for those libraries to load. How can I combine (at CMake level) my own ...
1
vote
1
answer
56
views
How to debug cuda in Visual Studio with "step over"
I installed NVIDIA Nsight Visual Studio Edition 2025.01 in Visual Studio 2022.
I want to debug code, but I can't debug with step over(F10), The debugger always stops at a location without a breakpoint....
0
votes
1
answer
45
views
Set dotnet version to use for debugging
Is there a way I can set the dotnet version to use for the debugger. I am using the one (debugger) that comes with C# Dev Kit. I currently have dotnet 8 and dotnet 2.2 installed but the debugger ...
0
votes
0
answers
42
views
How to inspect structures like NSRect/NSSize using lldb?
I have previously used lldb to print structures like NSRect or NSSize of 3rd party processes without issues. But I am struggling in modern versions of Xcode to inspect them. Namely since the ...
-3
votes
0
answers
44
views
MacOS: Using TextEditor with AttributedString uses wrong selection highlight colour in dark mode?
I am using the new AttributedString in Swift 26 with a TextEditor in dark mode to track selections for a qualitative data analysis tool.
ISSUE:
In dark mode, the highlight colour inherited from system ...
0
votes
0
answers
44
views
UIImage not showing in Xcode Debug
When I try to check any UIImage, it doesn't show. I can see MTLTexture, but not UIImage. I can see images if I go to the older branch, but not the current branch that I am working on. How to fix this?
...
0
votes
0
answers
18
views
How to debug service worker in phone-installed PWA?
I am having issues with fetch() statements in my service worker in a progressive web app installed on my Android phone (with Chrome). Ordinarily this would be easy to debug by sending messages to ...
0
votes
0
answers
25
views
Issue Connecting STM32F407G Discovery Board to STM32CubeProgrammer
OS: Ubuntu 24.04.2 & Windows 10
CubeProgrammer Version: 2.20.0
Board: STM32F407G-DISC1
Firmware Version: V15J63M63
I am having intermittent connectivity issues with my discovery board and the ...
0
votes
0
answers
27
views
Why does Erlang/OTP 28 debugger:start() not open the monitor window immediately?
I am following the instructions described in https://www.erlang.org/doc/apps/debugger/debugger_chapter to start the debugger. However, after debugger:start()., I only get the message Command is taking ...