• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Debugging via WebStorm causing NodeBB not respond when logging in

Scheduled Pinned Locked Moved NodeBB Development
5 Posts 2 Posters 1.5k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jiangcaiyangJ Offline
    jiangcaiyangJ Offline
    jiangcaiyang Anime Lovers
    wrote on last edited by
    #1

    Hello, I start debugging and testing NodeBB internals using WebStorm, but when the debugging procedure starts, I cannot get redirected to last view page when I click the login button when I log in. The console shows:

    /usr/bin/node --debug-brk=36534 app.js
    debugger listening on port 36534
    5/7 11:58 [8590] - info: NodeBB v1.0.3 Copyright (C) 2013-2014 NodeBB Inc.
    5/7 11:58 [8590] - info: This program comes with ABSOLUTELY NO WARRANTY.
    5/7 11:58 [8590] - info: This is free software, and you are welcome to redistribute it under certain conditions.
    5/7 11:58 [8590] - info: 
    5/7 11:58 [8590] - info: Time: Tue Jul 05 2016 11:58:54 GMT+0800 (CST)
    5/7 11:58 [8590] - info: Initializing NodeBB v1.0.3
    5/7 11:58 [8590] - info: [database] Checking database indices.
    
    5/7 11:58 [8590] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
      * nodebb-theme-lavender
      * nodebb-plugin-mentions
      * nodebb-plugin-category-notifications
      * nodebb-plugin-sketchfab
      * nodebb-plugin-emailer-local
    
    5/7 11:59 [8590] - info: NodeBB Ready
    5/7 11:59 [8590] - info: Enabling 'trust proxy'
    5/7 11:59 [8590] - info: NodeBB is now listening on: 0.0.0.0:1111
    5/7 11:59 [8590] - info: [plugins/spam-be-gone] Settings loaded
    
    1 Reply Last reply
    0
  • jiangcaiyangJ Offline
    jiangcaiyangJ Offline
    jiangcaiyang Anime Lovers
    wrote on last edited by
    #2

    Debugging a paasword verification is something difficult. Because the code shows that verifying password forks bcrypt process. But unfortunately it could not get the result back when debugging.
    0_1467701859668_upload-ab7a0592-a482-472b-89ba-d7916f716ef6

    1 Reply Last reply
    0
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    wrote on last edited by
    #3

    It happens to me also, same using Visual Studio Code. What i do is login in dev mode, without debugging, and once the login cookie is set, you can debug nodebb correctly and its plugins.

    Honestly i don't know why it happens.

    Regards.

    jiangcaiyangJ 1 Reply Last reply
    0
  • jiangcaiyangJ Offline
    jiangcaiyangJ Offline
    jiangcaiyang Anime Lovers
    replied to jarey on last edited by
    #4

    @jarey Hopelessly, we could not catch message from generated process using WebStorm, I think this is a bug, or NodeBB maintainer could use the debug mode to force bcrypt procedure to go within the debugging process instead of creating a new one.😒 😢

    jareyJ 1 Reply Last reply
    0
  • jareyJ Offline
    jareyJ Offline
    jarey Translator
    replied to jiangcaiyang on last edited by jarey
    #5

    @jiangcaiyang you can report an issue to request/discuss that option on the github repo. I'm pretty sure @administrators woul not mind to modify the behaviour if it doesn't break anything.

    Edit: update with the github issue for easier tracking in the forum.
    https://github.com/NodeBB/NodeBB/issues/4791

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development