52,731 questions
0
votes
1
answer
35
views
Is there a way to force Xcode to always debug over USB instead of WiFi?
I'm testing offline mode in my app. When I debug over WiFi, the iPhone loses the debugger connection after several seconds when I turn on Airplane Mode.
In Xcode 26, there is no longer a checkbox for ...
1
vote
1
answer
51
views
How can I more conveniently see the code mentioned in the stack backtrace in the Perl debugger in Emacs?
Using the T command in the Perl debugger produces a stack backtrace similar to
$ = main::infested called from file 'Ambulation.pm' line 10
@ = Ambulation::legs(1, 2, 3, 4) called from file 'camel_flea'...
0
votes
0
answers
30
views
Qt Creator fails to run application in debug mode
I am developing a desktop application in C++ using Qt Creator. My app runs fine in release mode, but it started to quit after making (perfectly) one display cycle, in Debug mode, without issuing any ...
0
votes
0
answers
46
views
Wordpress webhook is not live to paypal API and simulator
I am buliding a wordpress plugin. To take payment I am using Paypal. Users wil get an paypal link to pay the payment. I am using webhook for backend confirmation. But paypal can't reach may webhook ...
-2
votes
0
answers
74
views
Debug perspective in Eclipse (variables not changing in variables view)
I'm learning to use debugging perspective in Eclipse, and I'm using this code to see how variables change
int test =1;
test =2;
test=3;
int max;
max=10;
for(int var =0 ;var < max; ++var){
std::...
-1
votes
0
answers
69
views
How do I start the VS Code debugger (Python) when I run scripts from the terminal?
Normally when debugging, I'll just place breakpoints and hit debug on the top right of the VS Code interface.
But a lot of times, I need to run scripts from the terminal. I essentially want to be able ...
-2
votes
0
answers
48
views
How to create multiple BACnet/IP devices on the same "Application" (same <ip>:<port>) with python (for single YABE auto-discovery)
I'm developping in python 3.13 on Windows.
I have 2 computers:
On the first one I want to execute a .py file to simulate multiple BACnet devices on my PC ip : 192.168.1.54/24, port = BAC0 (47808)
On ...
1
vote
1
answer
67
views
If statement not working as intended in powershell script
The code below is to debloat workstations. It works, but the if statement does not work as intended. It removes the app installed, but writes removal failed instead of removal successful.
# Loop ...
-5
votes
0
answers
85
views
What about CComObject, CMessageMap and others in natvis? [closed]
I'm working on ATL/COM-based applications in C++.
In order to do debugging, might use native visualisers (`*.natvis` files).
On my PC, I have natvis files, handling things like ATL::CComPtr, ATL::...
2
votes
1
answer
128
views
Strange behavior of the EAX register being truncated to 16-bit when single-stepping with CodeViewer debugger? [duplicate]
DOS 6.22. Virtual Machine.
Simple code:
.model small, stdcall
.386
.stack 1024
.code
Main proc
mov AX, @data
mov DS, AX
mov EBX, 00F00140h ; ebx contain 00F00140h
mov EAX,...
2
votes
0
answers
120
views
Visualizing memory as binary in natvis [closed]
I have a C++ hash map class that I'm writing natvis code for in order to easily inspect its members while debugging. One member of the class is char* myControlBytes which is an array of chars/bytes ...
3
votes
1
answer
198
views
C/C++ debugger not launching in vscode
I recently had an update of vscode (now version: 1.112.0), and suddenly I wasn't able to start the debugger any more on my C++ project.
I have a launch.json with a debugger configuration (which was ...
Advice
2
votes
23
replies
323
views
Kernighan and Ritchie book. If the string does not contain a newline character, then the last character of the string will be removed. Is this a bug?
I am currently reading The C Programming Language Second Edition by Brian W. Kernighan and Dennis M. Ritchie.
My question is about readlines on p.109 in this book:
#include <stdio.h>
#include &...
0
votes
2
answers
71
views
Using VS Code Debugger gives "ModuleNotFoundError: No module named 'streamlit'" despite active venv
I'm developing a Streamlit app in VS Code. I have created a virtual environment (venv) specifically for this project, activated it in my terminal, and installed all requirements (including streamlit).
...
1
vote
1
answer
79
views
Debug Golang dockerized project tests
I have a Golang project, a single page application in React, where golang works as static files server and API. The application can be run using docker compose up and npm run in the web folder.
Here ...