I found it today when I debug the kernel output.The printf_s output is normal when printing a variable that has already been initialized, but there is unexpected data when the print is uninitialized.This is the original code.Char buf[]; DWORD Bfread; Bfread, NULL); for (int0; i++) { printf_s ("%x\n", Buf[i]); }The output is the same asSupposedly a char for a byte, the output cannot
C + + software add dump debug print log (recommended)
#include
Call this function at the very beginning of the program
SetUnhandledExceptionFilter (Toplevelexceptionfilter);
Above this C + + software add dump debug print log (recommended) is a small series to share all the content, hope to give you a ref
The compile option is added to-O, even if it is-o0, it does not display properly, need to add-gstabs+ this compile option,-gdwarf-2 This compilation option will conflict with-gstabs+, remove-gstabs+, only the-gdwarf-2 option can solve GDB debugging when the print variable is not allowed and some variables are not displayed.Reference http://bbs.csdn.net/topics/390708777?page=1#post-398696875In addition, compile the time add-wall,
For details about how to debug fortran by GDB and how to print variables-general Linux technology-Linux technology and application information, see the following. After gfortran-g is run, generate the executable file, and then gdb Executable File
To print the value of variable
Print
No symbol "a" in current context
/*To reference a PCH to a project:1.apple llvm7.0-language inside the precompile prefix header set to Yes2.prefix Header: $ (srcroot)/name of your project name/your PCH file*/#ifndef myselfpch_pch#define MYSELFPCH_PCHThe contents of the #ifdef __objc__//inside can only be used in. m or. mm files#ifdef debug//Commissioning Phase#define ZKZLOG (...) NSLog (__va_args__)#else#define ZKZLOG (...) Release phase#endif#endif#endif/* MYSELFPCH_PCH */Customize
1. How to open the "developer Tools" in the browser*360 Secure Browser* Method One, open the Web page you want to debug, such as Index.html, the top right corner of the browser---tools----developer tools* Method Two, press the shortcut key F12 directly to open the browser developer tools 2. Using the developer Tools 2.1 in the browser, use theConsole PanelConsole Panel Overview: You can enter JavaScrip
Tags: java mybatis spring log4j2Frame: spring4.1.5+mybatis3.2.8+log4j2+ ...Problem Description: When using service to invoke DAO for database operation, it is found that MyBatis does not have a print log, which is very inconvenient for development debugging.Workaround: Add in Mybatis-config.xml:Give it a try? I hope I can help you.Resolves issues with mybatis3.2.8 and log4j2 consolidating print SQL
In this paper, an instance of the codeigniter send mail and print debug information. Share with you for your reference. As follows:
Here the codeigniter code send mail and print debugging information, with codeigniter comes with the mail library send mail
$ This-> load-> Library (email ');
$ This-> email-> from (you @ example. com, 'Your Name ');
$ This-> e
Print Description of "string": output string information to the console.Copy: Copies the information of a string, including the variable name, class name, and value.View Value as: What type of format to look at the variable, and by default the type is automatically inferred.Edit value: You can modify the values of the variables directly. Cannot be modified in SwiftEdit Summary Format: Modify the formatting of the output information, the changes here w
(__hal_uart_get_flag (huart1, uart_flag_rxne) = = SET)//have accepted to string {uart_recbuf[ count++] = (uint8_t) (Huart1. INSTANCE->DR (uint8_t) 0x00FF);//Receive Huart1. INSTANCE->DR = uart_recbuf[count-1];//sends the received data if (count = =) Count = 0;} /* USER CODE END usart1_irqn 1 */}Note the code generated by using cube is not enabled by default for receive interrupts to open here:void Hal_uart_mspinit (uart_handletypedef* huart) { gpio_inittypedef gpio_initstruct; if (Huart->in
Method 1:
Print debug information on the NDK development tool console
The way mobile phones and development desktops are connected is on a local area network (such as an office WiFi environment, or a phone USB connection to a development desktop)
Operating effect:
The BlackBerry NDE C + + example code is as follows
void btcontroller::logqstring (const QString msg)
{
std::cout
Refere
In fact, it's better to use the façade, because the façade also introduces namespaces, so it's not good to introduce namespaces into every debug place.
Laravel-debugbar provides a global function, located in/vendor/barryvdh/laravel-debugbar/src/helpers.php, that has been defined in the Composer.json of the component for automatic loading, Therefore, you can use help functions directly, such as printing info-level log information:
Debugbar ()->info (
1. Javascript Debug Toolkit Introduction
JSDT (JavaScript debug Toolkit) is an Eclipse plug-in for JavaScript debugging that is used to debug JavaScript. JSDT can be debugged across br
Take a look at a simple Javascript Debug package: Jscript.debug.js, which contains two functions, the first to traverse each property of the object, and the second is a generic debug function (actually say ' object ' comparison '). Precise ', hehe ', used to specify a variety of error levels and their various prompts, the format of the error message display, or "
To debug Javascript in A SharePoint environment, consider the following settings:1. First, you need to check whether your IE has enabled script debugging.In Internet Explorer, find "Tools" --> "Internet Options", find the "advanced" page, and find the following two items under this page:Disable script debugging (Internet Explorer)Disable script debugging (other)Make sure these two items are not selected.
Program
Faced with a large section of JavaScript script, always have a headache, can not find the way to debug him, if there is any error, always to analyze from the beginning, and then insert a lot of alert (), debugging is cumbersome.In fact, visual Studio can set breakpoints for JavaScript scripts to debug. Just a l
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.