facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 683 forks source link

Source line breakpoints not set, or move. #1142

Closed raould closed 7 years ago

raould commented 7 years ago

I am working on a React Native app for iOS. I can mostly sort of kinda debug things from Nuclide, cool! But... there are some times when I try to click in the gutter at some source code in order to set a breakpoint, and the IDE decides that either (a) the breakpoint is not possible at all where I clicked or (b) is possible elsewhere and puts in a (?) icon where I clicked. There does not appear to be any obvious rhyme or reason to how/why, so I haven't sussed out any workarounds, either. Might anybody know what is going on with that? Thanks!

Versions

Additional Details

adgarcia commented 7 years ago

same issue here

ebluestein commented 7 years ago

Unfortunately we are not supporting the react native debugger right now from Nuclide due to several issues such as this one.

HessiPard commented 6 years ago

any update for this? with the recent update of nuclide (0.270.0) I still cant set breakpoint in react native and all the breakpoints will turn to unresolved (?) state.

pelmers commented 6 years ago

see https://github.com/facebook/nuclide/issues/1389, v0.271 will have the fix which makes the react native debugger selectable

HessiPard commented 6 years ago

@pelmers I dont have any problems in finding and attaching debuger ... I followed #1389 before and after modifying main.js and commenting return statement, I am able to attach react native debugger. my problem is unresolved breakpoints ... my breakpoints dont hit.

pelmers commented 6 years ago

@HessiPard ah thanks, I misunderstood your situation. could you make a new issue for your bug and include the react-native version?

ideally some code/repro example would be very helpful.

just an initial hunch: an old node bug (because atom uses old electron which uses old node) sometimes prevents setting breakpoints at launch. it may work if you set the breakpoints after launch and reload the app.