Don’t print, Go debug!## DON'T PRINT, GO DEBUG! by Alexander Podkhalyuzin 彭俐客 ## How to print?  ## Casey Newton @CaseyNewton Here it is: p\textsubscript{lan} 1 2 3 First steps Run to cursor Don't debug. Print! ## p\textsubscript{lan} 1 2 3 4 First steps Run to cursor Don't debug. Print! Attach to process 1 2 3 4 5 ## p\textsubscript{lan} Run to cursor Don't debug. Print! Attach to process Debug Goroutines ## p\textsubscript{lan} First steps Run to cursor Don't debug. Print! Attach to process Debug Goroutines Superpower!0 码力 | 36 页 | 1.15 MB | 2 年前3
Object Introspection: A Revolutionary Memory Profiler for C++ ObjectsDynamic Profiler • Can be used with no recompilation or code modification • APIs ## Outline • Debug Info Analysis • Type/Layout Reconstruction • Code Generation • Object Introspection as a Library Understand how to interpret data at memory offsets • Understand containers • Compiler generated debug information required • DWARF v4 (DebugFission supported) • drgn (https://github.com/osandov/drgn) [Image](/uploads/documents/f/9/2/d/f92d6739cbe6128deb047eb1259822d6/p21_1.jpg) ## Outline • Debug Info Analysis • Type/Layout Reconstruction • Code Generation • Object Introspection as a Library0 码力 | 62 页 | 2.24 MB | 1 年前3
PyWebIO v1.5.1 Documentationname of the single input as its key and the input data as its value: data = input_group("Basic info", [ input('Input your name', name='name'), input('Input your age' name) start_server(main, port=8080, debug=True) Now head over to http://127.0.0.1:8080/, and you should see your hello greeting. By using debug=True to enable debug mode, the server will automatically Thread(target=show_time).start() put_text('Background task started。) start_server(app, port=8080, debug=True) ## Close of session When user close the browser page, the session will be closed. After the0 码力 | 144 页 | 7.46 MB | 2 年前3
httpd 2.4.17 中文文档mod_proxy_scgi: The default setting for PATH_INFO has changed from httpd 2.2, and some web applications will no longer operate properly with the new PATH_INFO setting. The previous setting can be restored be configured per module and per directory. New levels trace1 to trace8 have been added above the debug log level.| |Per-request configuration sections| |<If>, <ElseIf>, and <Else> sections small business logic functions. (Experimental) mod_log_debug Allows the addition of customizable debug logging at different phases of the request processing. mod_buffer Provides0 码力 | 2455 页 | 1.88 MB | 1 年前3
Conan 1.50 Documentation"os", "arch", "compiler" ... def validate(self): if self.info.settings.os == "Macos": raise ConanInvalidConfiguration("Macos not supported") ["ANY"]} ``` ## 2.1.5 The validate() method Use always the self.info.settings instead of self.settings and self.info.options instead of self. options. Otherwise, the compatibility mechanism won't ``` Listing 10: To: ```python class Pkg(Conanfile): def validate(self): if self.info.settings.os == "Windows": raise ConanInvalidConfiguration("This package is0 码力 | 923 页 | 7.55 MB | 2 年前3
Conan 1.56 Documentation"os", "arch", "compiler" ... def validate(self): if self.info.settings.os == "Macos": raise ConanInvalidConfiguration("Macos not supported") {"opt": None} ``` ## 2.1.5 The validate() method Use always the self.info.settings instead of self.settings and self.info.options instead of self. options. Otherwise, the compatibility mechanism won't ``` Listing 11: To: ```python class Pkg(Conanfile): def validate(self): if self.info.settings.os == "Windows": raise ConanInvalidConfiguration("This package is0 码力 | 963 页 | 7.67 MB | 2 年前3
Conan 1.58 Documentation2.1.5 The validate() method Use always the self.settings instead of self.info.settings and self.options instead of self.info. options. The compatibility mechanism are not needed to verify if the configurations built. Listing 10: From: ```python class Pkg(Conanfile): def validate(self): if self.info.settings.os == "Windows": raise ConanInvalidConfiguration("This package is recipes that check for a specific self.settings.cppstd like: ```python def package_id(self): self.info.clear() def validate(self): if self.settings.get_safe("compiler.cppstd"):0 码力 | 979 页 | 7.71 MB | 2 年前3
Conan 1.57 Documentation2.1.5 The validate() method Use always the self.settings instead of self.info.settings and self.options instead of self.info. options. The compatibility mechanism are not needed to verify if the configurations built. Listing 10: From: ```python class Pkg(Conanfile): def validate(self): if self.info.settings.os == "Windows": raise ConanInvalidConfiguration("This package is recipes that check for a specific self.settings.cppstd like: ```python def package_id(self): self.info.clear() def validate(self): if self.settings.get_safe("compiler.cppstd"):0 码力 | 971 页 | 7.69 MB | 2 年前3
Conan 1.42 Documentationcontent of conanfile.py for a reference $ conan getDisplay dependency graph info for a recipe $ conan info Search Packages Search for packages in a remote $ conan search zlib generator $ conan install zlib/1.2.11@ -g deploy ## Conan Recipe Methods in Package Creation package info() From all dependency recipes exports_sources_source() generate{} build package(): = ] # Specify settings, e.g. build_ type=Debug # is optional: if not specified, the option/setting # applies to all dependencies (continues 0 码力 | 841 页 | 7.12 MB | 2 年前3
Conan 1.47 Documentationcontent of conanfile.py for a reference $ conan getDisplay dependency graph info for a recipe $ conan info Search Packages Search for packages in a remote $ conan search zlib generator $ conan install zlib/1.2.11@ -g deploy ## Conan Recipe Methods in Package Creation package info() From all dependency recipes exports_sources_source() generate{} build package(): = ] # Specify settings, e.g. build_ type=Debug # is optional: if not specified, the option/setting # applies to all dependencies (continues 0 码力 | 907 页 | 7.50 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
调试代码打印Goroutines工具Object IntrospectionMemory ProfilerType ReconstructionCode GenerationDebug Infopin moduleplatform modulesessionwebsocketdebugmod_auth_basicmod_authn_filemod_authnz_ldapmod_authz_hostmod_infoConan依赖管理二进制管理平台支持构建系统包管理器配置文件命令行工具1.58.0安装使用创建包package managerdependency managementbuild systemsbinary management版本更新新功能修复贡献者包管理工具链交叉编译版本控制













