isaacHagoel / solid-dnd-directive

A directive based drag and drop container for solid-js
MIT License
76 stars 4 forks source link

How to enable debug logs? #11

Open lakshbhutani01 opened 1 year ago

lakshbhutani01 commented 1 year ago

import {setDebugMode} from "solid-dnd-directive"; setDebugMode(true);

How to use this and where to write the?

isaacHagoel commented 1 year ago

It would print to the console. Make sure you set you filter to show the "verbose" output

On Wed, Sep 13, 2023, 16:51 Laksh Bhutani @.***> wrote:

import {setDebugMode} from "solid-dnd-directive"; setDebugMode(true);

How to use this and where to write the?

— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/solid-dnd-directive/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZCZMAQDU4NZCQTRBXB3X2FJWDANCNFSM6AAAAAA4V5EMTA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lakshbhutani01 commented 1 year ago

@isaacHagoel where should this code be written?

isaacHagoel commented 1 year ago

Anywhere really. Usually I do it in the same component that imports the lib

On Wed, Sep 13, 2023, 16:59 Laksh Bhutani @.***> wrote:

@isaacHagoel https://github.com/isaacHagoel where should this code be written?

— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/solid-dnd-directive/issues/11#issuecomment-1717056254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZC6523OKMVKVX5PBRP3X2FKURANCNFSM6AAAAAA4V5EMTA . You are receiving this because you were mentioned.Message ID: @.***>

lakshbhutani01 commented 1 year ago

not working for me, not sure why?

lakshbhutani01 commented 1 year ago

Context: Sometimes the drag is not working i.e I am not able to drag even the drag disabled is false. I want to debug why this is happening FYI: I've not added any filter in my console.

isaacHagoel commented 1 year ago

Got it. Let me know if U need help. First thing I would do is try to upgrade the dependency svelte-dnd-action to latest.

On Wed, Sep 13, 2023, 17:02 Laksh Bhutani @.***> wrote:

Context: Sometimes the drag is not working i.e I am not able to drag even the drag disabled is false. I want to debug why this is happening

— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/solid-dnd-directive/issues/11#issuecomment-1717060483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZCYURD7DTZAAFGOOEHDX2FLCDANCNFSM6AAAAAA4V5EMTA . You are receiving this because you were mentioned.Message ID: @.***>