Sysprogs forums › Forums › VisualGDB › printf output in embedded project
- This topic has 0 replies, 1 voice, and was last updated 1 day, 5 hours ago by
intector.
-
AuthorPosts
-
April 12, 2025 at 09:04 #36546
intector
ParticipantHello,
I’m working on a project with an STM32H7R3L8H6H and was wondering about the printf output. Everything works fine so far and I’m very happy with the performance of VisualGDB.
When I use prinf to see some values in runtime, some strange things happen. I place a breakpoint behind the printf functions and get this in my output window:
***************************************************
response packet:
HTTP/1.1 200 OK
Content-Type: text/plain
Connection: keep-alive
Content-Length: 386
8
/*
Input Mask plugin binding
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) Robin Herbots
Licensed under the MIT license
*/
(function (factory) {
factory(jQuery, window.Inputmask, window);
})(function ($, Inputmask, window) {
$(window.document)
.ajaxComplete(function (event, xmlHttpRequest, ajaxOptions) {
if ($.inArray("html", ajaxOptions.dataTypes) !== -1) {
$(
".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias], [data-inputmask-regex]"
).each(function (ndx, lmnt) {
if (lmnt.inputmask === undefined) {
Inputmask().mask(lmnt);
}
});
}
})
.ready(function () {
$(
".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias],[data-inputmask-regex]"
).each(function (ndx, lmnt) {
if (lmnt.inputmask === undefined) {
Inputmask().mask(lmnt);
}
});
});
});
response packet:
8
/*
Input Mask plugin binding
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) Robin Herbots
Licensed under the MIT license
*/
(function (factory) {
factory(jQuery, window.Inputmask, window);
})(function ($, Inputmask, window) {
$(window.document)
.ajaxComplete(function (event, xmlHttpRequest, ajaxOptions) {
if ($.inArray("html", ajaxOptions.dataTypes) !== -1) {
$(
".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias], [data-inputmask-regex]"
).each(function (ndx, lmnt) {
if (lmnt.inputmask === undefined) {
Inputmask().mask(lmnt);
}
});
}
})
.ready(function () {
$(
".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias],[data-inputmask-regex]"
).each(function (ndx, lmnt) {
if (lmnt.inputmask === undefined) {
Inputmask().mask(lmnt);
}
});
});
});
***************************************************
This is in my code:
// get the client request type
nx_web_http_server_type_get(server_ptr, server_ptr->nx_web_http_server_request_resource, temp_string, &string_length);
temp_string[string_length] = '\0'; // Null terminate the string.
// build a response header with server status is OK and no additional header info.
status = nx_web_http_server_callback_generate_response_header(server_ptr,
&resp_packet_ptr,
NX_WEB_HTTP_STATUS_OK,
strlen(data),
temp_string,
NX_NULL);
if (status != NX_SUCCESS) {
rtos_mem_free(data);
return status;
}
printf("***************************************************\r\n");
printf("response packet: \r\n%s\r\n", resp_packet_ptr->nx_packet_prepend_ptr);
printf("response packet: \r\n%s\r\n", resp_packet_ptr->nx_packet_append_ptr);
printf("***************************************************\r\n");
How can i see my javascript code in the VisualGDB output window?
It’s not really a problem, it’s just very confusing.
thank you
-
AuthorPosts
- You must be logged in to reply to this topic.