Yes, I'm in debug mode. I mean I cannot step over one line each time or step into a function. I have to set a lot of breakpoints to stop the program at these lines.
> On Aug 5, 2021, at 6:16 PM, Timo Heister <heis...@clemson.edu> wrote: > > > What do you mean by "cannot do step debug"? Are you compiling in debug mode? > >> On Thu, Aug 5, 2021, 18:34 Michael Li <lianxi...@gmail.com> wrote: >> I put MultithreadInfo::set_thread_limit(1) in main function, but still >> cannot do step debug in the function >> >> assemble_neumann_contribution_one_cell. Am I doing something wrong? >> >> >> >> >> >> >> >> From: Timo Heister >> Sent: Thursday, August 5, 2021 1:19 PM >> To: dealii@googlegroups.com >> Subject: Re: [deal.II] Debug multithread code >> >> >> >> Take a look at set_thread_limit: >> >> https://www.dealii.org/current/doxygen/deal.II/classMultithreadInfo.html >> >> As you can see, you can also control it using an environment variable, so >> you don't have to recompile. >> >> >> >> On Thu, Aug 5, 2021, 13:36 Michael Lee <lianxi...@gmail.com> wrote: >> >> Hi, >> >> >> >> I find it's difficult to debug multithread code on a multiple-core computer. >> Sometimes it does not step into a function (I'm using vscode + wsl). Does >> deal.II use all the cores available? For the sake of debug, how can I limit >> the cores used? Is there a way to debug the code just like series one? >> >> >> >> Regards, >> >> Michael >> >> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "deal.II User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dealii+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/b123aaf2-8d32-4b43-b818-8d2ae9ffac77n%40googlegroups.com. >> >> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "deal.II User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dealii+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/CAMRj59HvBtTTF1D3SnGHgbnub4nNN_6TC0aYPqHJRK3NYoqdVA%40mail.gmail.com. >> >> >> >> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "deal.II User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dealii+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/B6A6B8CA-9E60-4912-BC84-5706D0E86574%40hxcore.ol. > > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dealii+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/CAMRj59G5y%3DjGV%3DnOEUrnDtMNy6F9RoU%3D5c4RGs7HJS%3DcjQDLTA%40mail.gmail.com. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/53D60D09-BAD7-4F13-96EB-9AE7016E5A23%40gmail.com.