Title: Debugging query callback with node-inspector! · Issue #62 · Azure/node-sqlserver · GitHub
Open Graph Title: Debugging query callback with node-inspector! · Issue #62 · Azure/node-sqlserver
X Title: Debugging query callback with node-inspector! · Issue #62 · Azure/node-sqlserver
Description: When using node-inspector for debugging, setting a breakpoint in a callback function body of any callback function that goes across the OdbcConnectionBridge causes node to terminate without the breakpoint being hit. You can reproduce thi...
Open Graph Description: When using node-inspector for debugging, setting a breakpoint in a callback function body of any callback function that goes across the OdbcConnectionBridge causes node to terminate without the bre...
X Description: When using node-inspector for debugging, setting a breakpoint in a callback function body of any callback function that goes across the OdbcConnectionBridge causes node to terminate without the bre...
Opengraph URL: https://github.com/Azure/node-sqlserver/issues/62
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debugging query callback with node-inspector!","articleBody":"When using \u003cb>node-inspector\u003c/b> for debugging, setting a breakpoint in a callback function body of any callback function that goes across the OdbcConnectionBridge causes node to terminate without the breakpoint being hit.\n\nYou can reproduce this by setting a breakpoint anywhere in the body of the callback function as indicated below.\n\n``` javascript\n// Query with explicit connection\nvar sql = require('node-sqlserver');\nvar conn_str = \"Driver={SQL Server Native Client 11.0};Server={(LocalDb)\\\\v11.0};Database={NodeDB};Trusted_Connection={Yes};\";\n\nsql.open(conn_str, function (err, conn) {\n // Setting a debug breakpoint anywhere between here ...\n if (err) {\n console.log(\"Error opening the connection!\");\n return;\n }\n conn.queryRaw(\"SELECT * FROM NodeTable\", function (err, results) {\n if (err) {\n console.log(\"Error running query!\");\n return;\n }\n for (var i = 0; i < results.rows.length; i++) {\n console.log(\"0:\" + results.rows[i][0]);\n }\n });\n // ... and here, will cause node to exit prematurely without breaking in the debugger.\n});\n```\n\nI'm not convinced that this is a node-sqlserver issue per se but I see a \u003ca href=\"http://stackoverflow.com/questions/11909137/debugging-node-sqlserver-query-with-node-inspector\">SO question on the same thing\u003c/a> and thought I'd post here first.\n\nAny pointers on how to get this working would be great!\n","author":{"url":"https://github.com/clintwood","@type":"Person","name":"clintwood"},"datePublished":"2012-08-22T13:27:12Z","url":"https://github.com/Azure/node-sqlserver/issues/62"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b1de30e-1b7b-51e6-356e-e567b4f2b9c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C36:147092:4461B4:5FC34D:6AFB5A7E |
| html-safe-nonce | ef09df979498a6fff64b11c0967cd798ef92bbfa78f4ba73234af0f24ca3296b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzM2OjE0NzA5Mjo0NDYxQjQ6NUZDMzREOjZBRkI1QTdFIiwidmlzaXRvcl9pZCI6IjIxMjgwNzg3MzU3NDU3MDIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a52773caf9a3cd201926e3ffe3f2ac0d745c98bf7809969b73f83207878f8299 |
| hovercard-subject-tag | issue:6376991 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Azure/node-sqlserver/62/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ad108fc0e7c24ddc2dceccb06c7db9ea67b78483576bc56117dad779bc916c6/Azure/node-sqlserver/issues/62 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ad108fc0e7c24ddc2dceccb06c7db9ea67b78483576bc56117dad779bc916c6/Azure/node-sqlserver/issues/62 |
| og:image:alt | When using node-inspector for debugging, setting a breakpoint in a callback function body of any callback function that goes across the OdbcConnectionBridge causes node to terminate without the bre... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clintwood |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/Azure/node-sqlserver git https://github.com/Azure/node-sqlserver.git |
| octolytics-dimension-user_id | 6844498 |
| octolytics-dimension-user_login | Azure |
| octolytics-dimension-repository_id | 3603910 |
| octolytics-dimension-repository_nwo | Azure/node-sqlserver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3603910 |
| octolytics-dimension-repository_network_root_nwo | Azure/node-sqlserver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width